import request from '@/utils/request'
// 区域列表
export function QuYu(params) {
  return request({
    url: '/api/vm-service/region/search',
    params
  })
}
// /api/vm - service / node / search
// 点位搜索
export function DianWei(params) {
  return request({
    url: '/api/vm-service/node/search',
    params
  })
}
// 商圈列表
export function ShangQuan(params) {
  return request({
    url: '/api/vm-service/businessType',
    params
  })
}
// 删除区域接口
export function shanchu(id) {
  return request({
    method: 'delete',

    url: `/api/vm-service/region/${id}`

  })
}
// 新增区域接口
export function xinzeng(data) {
  return request({
    method: 'POST',
    data,
    url: '/api/vm-service/region'

  })
}
// 获取区域详情
export function quxiang(params) {
  return request({
    method: 'GET',
    url: '/api/vm-service/node/search',
    params

  })
}
// 修改区域
export function xiu(data) {
  return request({
    method: 'PUT',
    data,
    url: `/api/vm-service/region/${data.id}`

  })
}
// 点位绚烂
export function xuan(params) {
  return request({

    params,
    url: '/api/vm-service/node/search'

  })
}
// 删除点位
export function xu(id) {
  return request({
    method: 'delete',

    url: `/api/vm-service/node/${id}`

  })
}
// 合作商搜索
export function shang() {
  return request({

    url: '/api/user-service/partner/search'

  })
}
export function getShoppingList(params) {
  return request({
    url: '/api/user-service/partner/search',
    params
  })
}
// 修改合作商
export function hezuo(data) {
  return request({
    method: 'PUT',
    url: `/api/user-service/partner/${data.id}`,
    data
  })
}
// 新增合作商
export function xinhe() {
  return request({
    method: 'POST',
    url: '/api/user-service/partner'

  })
}
// 删除合作商
export function shanshan(id) {
  return request({
    method: 'DELETE',
    url: `/api/user-service/partner/${id}`

  })
}
export function addService(data) {
  return request({
    url: '/api/user-service/partner',
    method: 'post',
    data
  })
}
// 重置密码
export function chongzhi(id) {
  return request({
    url: `/api/user-service/partner/resetPwd/${id}`,
    method: 'PUT'
    // data
  })
}
// 点位详情
export function dianxiang(id) {
  return request({
    url: `/api/vm-service/node/vmList/${id}`,
    method: 'GET'
    // data
  })
}
// 修改点位
export function xiuwei(data) {
  return request({
    url: `/api/vm-service/node/${data.id}`,
    method: 'PUT',
    data
    // data
  })
}
// 新增点位
export function xinwei(data) {
  return request({
    url: '/api/vm-service/node',
    method: 'POST',
    data
    // data
  })
}
// 商圈列表
export function lie() {
  return request({
    url: '/api/vm-service/businessType',
    method: 'GET'

    // data
  })
}
